import httpRequest from '../../utils/request'
import modules from '../modules'
const defaultRoute = 'Equipment_EquipmentClassify'
const controllerName = 'EquipmentClassify'

export interface EquipmentClassifyParam {
  ClassifyName: string | null
  PageIndex: number
  PageSize: number
  totalCount: number
 
}


// 获取设备分类列表
export function ApiGetEquipment_EquipmentClassifyPageListAsync(param: EquipmentClassifyParam) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Get${defaultRoute}PageList`,
    method: "Post",
    data: param,
  });
}

// 批量删除设备分类
export function ApiDeletionEquipment_EquipmentClassifyAsync(param: string[]) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Deletion${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加设备分类
export function ApiCreateEquipment_EquipmentClassifyAsync(param: object) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Create${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 更新设备分类
export function ApiUpdateEquipment_EquipmentClassifyAsync(param: object) {
  return httpRequest({
    url: `${modules.EquipmentModuleUrl}/${controllerName}/Update${defaultRoute}`,
    method: "Post",
    data: param,
  });
}